import { handleActions } from 'redux-actions'
import { INIT_FIRST_USERINFO_B_TYPE, UPDATE_FIRST_USERINFO_B_TYPE } from './types'
const Schema = {
  showEmpty: false,
  networkerror: false,
  userName: '',
  gmtBorth: null,
  gender: null,
  postion: ''
}
export default handleActions({
  [UPDATE_FIRST_USERINFO_B_TYPE] (state, action) {
    return {
      ...state,
      ...action.payload
    }
  },
  [INIT_FIRST_USERINFO_B_TYPE] (state, action) {
    return {
      ...Schema
    }
  }
}, Schema)
